package net.idugic.dto;

import java.io.Serializable;
import java.util.Date;

public class TopicThreadDTO implements Serializable {

	private static final long serialVersionUID = -4712090440290224904L;

	private Integer id = null;

	private Integer topic = null;

	private String owner_account = null;

	private String title = null;

	private String text = null;

	private Date thread_time = null;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTopic() {
		return topic;
	}

	public void setTopic(Integer topic) {
		this.topic = topic;
	}

	public String getOwner_account() {
		return owner_account;
	}

	public void setOwner_account(String owner_account) {
		this.owner_account = owner_account;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Date getThread_time() {
		return thread_time;
	}

	public void setThread_time(Date thread_time) {
		this.thread_time = thread_time;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final TopicThreadDTO other = (TopicThreadDTO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}
